package com.zywl.api;

import com.zywl.service.DemandService;
import com.zywl.utils.models.JsonResult;
import com.zywl.web.controller.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/xxx/")
public class xxxApi extends BaseController {

    @ResponseBody
    @RequestMapping("create")
    public JsonResult create(){
        JsonResult jr = new JsonResult();
        try {

        }catch (Exception e){
            logger.error("添加失败",e);
            jr.error("添加失败");
        }
        return jr;
    }

    @ResponseBody
    @RequestMapping("detail")
    public JsonResult detail(){
        JsonResult jr = new JsonResult();
        try {

        }catch (Exception e){
            logger.error("获取详情失败",e);
            jr.error("获取详情失败");
        }
        return jr;
    }

    @ResponseBody
    @RequestMapping("modify")
    public JsonResult modify(){
        JsonResult jr = new JsonResult();
        try {

        }catch (Exception e){
            logger.error("修改失败",e);
            jr.error("修改失败");
        }
        return jr;
    }

    @ResponseBody
    @RequestMapping("remove")
    public JsonResult remove(){
        JsonResult jr = new JsonResult();
        try {

        }catch (Exception e){
            logger.error("删除失败",e);
            jr.error("删除失败");
        }
        return jr;
    }

}
